import { ref } from 'vue'
import request from '@/utils/request.js'


//根据专业id查询所有班级
export const selectAllByMajorId=(marjorId)=>{
   return request.get('/teachermajor/selectallbymajorid/'+marjorId)
}

//分配老师下拉框查询
export const selectTeacherMessage=(marjorId)=>{
    return request.get('/teachermajor/selectTeacherMessage/'+marjorId)
 }

 //分配老师方法
export const fenpeiTeacher=(res)=>{
   return request.post('/teachermajor/fenpeiTeacher',res)
}

//创建班级
export const addOneClass=(res)=>{
   return request.post('/teachermajor/addClass',res)
}


//修改班级
export const changeOneClass=(res)=>{
   return request.post('/teachermajor/changeOneClass',res)
}
 
